export const activityConfig = {
  // 活动类型
  types: {
    // 签到活动
    signin: {
      enabled: true,
      rewards: {
        coins: [10, 20, 30, 40, 50, 60, 100], // 连续7天签到奖励
        exp: [10, 15, 20, 25, 30, 35, 50],
      },
      extraRewards: {
        monthly: {
          days: 21, // 月签到21天
          reward: {
            coins: 500,
            items: ['monthly_badge'],
          },
        },
      },
    },

    // 限时礼物活动
    giftEvent: {
      enabled: true,
      types: [
        {
          id: 'double_points',
          name: '礼物双倍',
          description: '送礼物获得双倍积分',
          startTime: '2024-01-01 00:00:00',
          endTime: '2024-01-07 23:59:59',
          gifts: ['all'], // 所有礼物
          multiplier: 2, // 双倍积分
        },
        {
          id: 'special_gift',
          name: '限定礼物',
          description: '新春专属礼物',
          startTime: '2024-01-20 00:00:00',
          endTime: '2024-02-20 23:59:59',
          gifts: ['spring_festival_gift'],
          specialEffect: true,
        },
      ],
    },

    // 主播PK活动
    pkEvent: {
      enabled: true,
      rules: {
        duration: 300, // PK时长(秒)
        cooldown: 1800, // 冷却时间(秒)
        minLevel: 3, // 最低主播等级
        rewards: {
          winner: {
            coins: 1000,
            exp: 500,
            items: ['pk_winner_badge'],
          },
          loser: {
            coins: 200,
            exp: 100,
          },
        },
      },
    },

    // 节日活动
    festival: {
      enabled: true,
      events: [
        {
          id: 'spring_festival',
          name: '春节活动',
          startTime: '2024-02-10 00:00:00',
          endTime: '2024-02-24 23:59:59',
          features: [
            {
              type: 'room_decoration',
              theme: 'spring_festival',
              effects: ['fireworks', 'lanterns'],
            },
            {
              type: 'special_gifts',
              items: ['red_packet', 'fortune_bag'],
            },
            {
              type: 'lucky_draw',
              prizes: [
                { name: '年度会员', probability: 0.01 },
                { name: '新春礼包', probability: 0.1 },
                { name: '红包礼物', probability: 0.5 },
              ],
            },
          ],
        },
      ],
    },
  },

  // 任务系统
  tasks: {
    daily: [
      {
        id: 'watch_live',
        name: '观看直播',
        target: 30, // 观看30分钟
        rewards: {
          coins: 50,
          exp: 20,
        },
      },
      {
        id: 'send_gift',
        name: '赠送礼物',
        target: 1, // 送1次礼物
        rewards: {
          coins: 100,
          exp: 30,
        },
      },
    ],
    weekly: [
      {
        id: 'watch_anchors',
        name: '关注主播',
        target: 3, // 关注3个主播
        rewards: {
          coins: 500,
          exp: 100,
        },
      },
    ],
  },

  // 数据存储
  storage: {
    // 活动数据
    activityData: {
      path: 'D:\\livechat\\data\\activities', // Windows路径
      backup: {
        enabled: true,
        interval: '1d',
        keep: 30, // 保留30天
      },
    },
    // 奖励记录
    rewardLogs: {
      path: 'D:\\livechat\\data\\rewards',
      format: 'json',
      compress: true, // 压缩存储
      retention: 90, // 保留90天
    },
  },

  // 活动通知
  notification: {
    // 通知方式
    channels: [
      {
        type: 'popup', // 弹窗通知
        enabled: true,
        style: {
          theme: 'festival',
          animation: true,
        },
      },
      {
        type: 'message', // 站内信
        enabled: true,
        template: 'D:\\livechat\\templates\\activity_notice.html',
      },
    ],
    // 推送时机
    timing: {
      beforeStart: 86400, // 开始前24小时
      reminder: 3600, // 结束前1小时
      afterEnd: 0, // 结束时
    },
  },
}
